LUA LOAD BUFFER
With this command you can load buffers as so called lua chunks into the actual lua state. It parses the buffer you specify, compiles and then runs it, if the buffer contains proper LUA scripting code.
The first argument is a Dword pointer to the buffer. You can for example pass a memblock pointer to the command, using GET MEMBLOCK PTR().
Note that the buffer you specify can either be valid text code, or binary code compiled with 'luac', the lua compiler.
The chunk_size indicates the size of the buffer.
The chunk_name is only used for error messages to identify the code.
You should check for errors after calling this command, since there could have been a parsing error (when using text code).
SYNTAX
LUA LOAD BUFFER lua_chunk as Dword, chunk_size as Integer, chunk_name as String
RELATED INFO
LUA command menu
Index
EXAMPLE
Showcase-example 1
Showcase-example 2